package org.jeecg.modules.workvehicleborrow.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: work_vehicle_borrow
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
@Data
@TableName("work_vehicle_borrow")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="work_vehicle_borrow对象", description="work_vehicle_borrow")
public class WorkVehicleBorrow implements Serializable {
    private static final long serialVersionUID = 1L;

	/**序号*/
	@TableId(type = IdType.ASSIGN_ID)
	@Excel(name = "序号", width = 15)
    @ApiModelProperty(value = "序号")
    private String borrowId;
	/**借用人*/
	@Excel(name = "借用人", width = 15)
    @ApiModelProperty(value = "借用人")
    private String borrowUser;
	/**借用时间*/
	@Excel(name = "借用时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "借用时间")
    private Date borrowStartTime;
	/**借用的车辆编号*/
	@Excel(name = "借用的车辆编号", width = 15)
    @ApiModelProperty(value = "借用的车辆编号")
    private String borrowVehicle;
	/**开始里程*/
	@Excel(name = "开始里程", width = 15)
    @ApiModelProperty(value = "开始里程")
    private Double borrowStartMileage;
	/**开始里程照片*/
	@Excel(name = "开始里程照片", width = 15)
    @ApiModelProperty(value = "开始里程照片")
    private String borrowStartMileageImg;
	/**结束里程*/
	@Excel(name = "结束里程", width = 15)
    @ApiModelProperty(value = "结束里程")
    private Double borrowEndMileage;
	/**结束里程照片*/
	@Excel(name = "结束里程照片", width = 15)
    @ApiModelProperty(value = "结束里程照片")
    private String borrowEndMileageImg;
	/**还车时间*/
	@Excel(name = "还车时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "还车时间")
    private Date borrowEndTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    /**车辆状态0，未借用，1，以借用，2维修中*/
    @Excel(name = "车辆状态0，未借用，1，以借用，2维修中", width = 15)
    @ApiModelProperty(value = "车辆状态0，未借用，1，以借用，2维修中")
    @Dict(dicCode = "vehicleState" )
    private Integer vehicleState;

    public String getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(String borrowId) {
        this.borrowId = borrowId;
    }

    public Date getBorrowEndTime() {
        return borrowEndTime;
    }

    public void setBorrowEndTime(Date borrowEndTime) {
        this.borrowEndTime = borrowEndTime;
    }

    public Date getBorrowStartTime() {
        return borrowStartTime;
    }

    public void setBorrowStartTime(Date borrowStartTime) {
        this.borrowStartTime = borrowStartTime;
    }

    public String getBorrowVehicle() {
        return borrowVehicle;
    }

    public void setBorrowVehicle(String borrowVehicle) {
        this.borrowVehicle = borrowVehicle;
    }
}
